// ==UserScript==
// @name         redmine image upload plugin
// @namespace    https://greasyfork.org/users/71775
// @website      https://eeve.me
// @version      0.3
// @description  a redmine image upload plugin
// @author       eeve
// @require      https://cdnjs.cloudflare.com/ajax/libs/babel-standalone/6.18.2/babel.js
// @require      https://cdnjs.cloudflare.com/ajax/libs/babel-polyfill/6.16.0/polyfill.js
// @require      https://cdnjs.cloudflare.com/ajax/libs/vue/2.3.4/vue.min.js
// @include      /^http://.*/projects/.*/issues(/new.*)?$/
// @include      /^http://.*/issues/\d+$/
// ==/UserScript==

$.ajax({
    url: 'http://127.0.0.1:8000/index.js',
    type: 'GET',
    complete: function(res) {
        /* jshint ignore:start */
        var c = Babel.transform(res.responseText, { presets: [ "es2015", "es2016" ] });
        eval(c.code);
        /* jshint ignore:end */
    }
});